package com.tanhua.dubbo.api;

import com.tanhua.model.enums.CommentType;
import com.tanhua.model.mongo.Comment;

import java.util.List;

public interface CommentApi {
    //发布评论,并获取评论数量
    Integer save(Comment comment1);
    //分页查询评论列表
    List<Comment> findComments(String movementId, CommentType comment, Integer page, Integer pagesize);

    //判断comment数据是否存在
    Boolean hasComment(String movementId, Long id, CommentType like);
    //删除comment数据
    Integer remove(Comment comment);
}
